import {createStore, applyMiddleware} from 'redux';
import reducer from './reducers';
import thunk from 'redux-thunk';
import logger from 'redux-logger';
import history from './history';
import { routerMiddleware } from 'connected-react-router';  

let store = createStore(reducer, applyMiddleware(routerMiddleware(history), thunk, logger));

export default store